﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace KL.UFrame.Data.Entities
{
    public class EmailRecord
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }

        [Required]
        [MaxLength(128)]
        public string Sender { get; set; }

        [Required]
        [MaxLength(128)]
        public string Subject { get; set; }

        [Required]
        public string Body { get; set; }

        /// <summary>
        /// 多个收件人使用分号隔开
        /// </summary>
        [Required]
        public string Recipients { get; set; }

        [Required]
        public string Status { get; set; }

        [Required]
        public DateTime CreateTime { get; set; }
    }
}